using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Domain.Model.Orders;
using Domain.Model.PhoneNumbers;
using Domain.Model.Addresses;
using Domain.Model.Employees;

namespace Domain.Model.Affiliates
{
    public class Affiliate
    {
        public Affiliate()
        {
            PhoneNumbers = new HashSet<PhoneNumber>();
        }

        [Key]
        public int Code { get; set; }
        public AffiliateType Type { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }

        public virtual Address Address { get; set; }
        public virtual ICollection<PhoneNumber> PhoneNumbers { get; set; }

        #region ToString Implementation
        public override string ToString()
        {
            return Name;
        } 
        #endregion
    }
}